<template>
  <div>产品详情页面：{{$route.query.id}}</div>
</template>

<script>
import{GoodsDetaisAPI} from "@/request/api";
export default {
    async created() {
        console.log("接收到的id为:",this.$route.query.id);
        let res = await GoodsDetaisAPI(this.$route.query.id);
        console.log("查询到的结果为:",res);
    }
}
</script>

<style>

</style>